package com.cloudcc.cloudframe.model;

import java.io.Serializable;
import java.util.List;

public class DynamicModel implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String id;
	public String body;//
	public String feedType;//
	public String authorIdname;//
	public String yylength;//语音时间
	public String praisenum;// //赞数
	public boolean isfavorited;//
	public String createDate;//
	public boolean ispraised;//
	public boolean photo;//
	public String targetType;//
	public String authorId;//
	public String linkValue; // "http://www.baidu.com"
	public String linkName;// "百度"
	public String fileId;
	public List<FeedFile> feedFile;
	public List<Comments> comments;// 评论comments
	public String marknum;// 收藏数量
	public List<Polls> polls;
	public String longitude;
	public String latitude;
	public String address;
	public boolean tpflag;

	public String targetIdname;
	public String targetId;

	public String taskOrEventName;
	public String taskIdOrEventId;

	public static class FeedFile implements Serializable {
		public String parendId;
		public String fileLength;// fileLength : "140.0KB"
		public String filename;// filename : "20140805154610"
		public String fileid;// fileid :
								// "140722487745612LQzlk7!4fc6067f917f39da72e9b156063b4d6e"
		public String contentType;// contentType : "png"
//		public String yylength;//语音时间
	}

	public static class Comments implements Serializable {
		public String parendId;

		public String id;

		public String body;//

		public String authorIdname;//
		public String yylength;//

		public String praisenum;//

		public String createDate;//

		public boolean ispraised;

		public boolean photo;//

		public String authorId;//

		public CommentsFile commentsFile;

		public static class CommentsFile {
			public String id;

			public String fileLength;

			public String filename;

			public String fileid;
//			public String yylength;//语音时间

			public String contentType;
			public Comments comments;
		}
	}

	public static class Polls implements Serializable {
		public String parendId;
		public String[] optionUsers;
		public String optionIndex;
		public String option;
	}

}
